-- CALC_CHRISTMAST_HOUSE_BONUS_1

-- @param user     玩家对象
-- @param bonusArg 奖励参数
return function(user, bonusArg)
    -- 获取活动期间进入圣诞小屋的次数
    local activityId = 7;
    local unrealId = 34;
    local enterTimes = ActivityM.getEnterUnrealTimes(activityId, unrealId) + 1;

    -- 如下次数可获得特殊奖励
    local specialTimesArr = { 1, 2, 4, 5, 7, 8, 10, 11, 13, 14, };
    if table.indexOf(specialTimesArr, enterTimes) ~= -1 then
        -- 圣诞铃铛×10
        return { 1, 7592, 10, };
    end

    --  随机抽取金币×300~600
    local arr = { 300, 400, 500, 600 };
    local rand = DungeonM.getRandSeed("CALC_CHRISTMAST_HOUSE_BONUS_1");
    local index = rand % #arr + 1;
    return { 2, "money", arr[index]};
end
